fix: #103 hide search history error when closed and restore retry focus #112
+207
−72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #103
What was done
Retry recent searchesbutton inside theRecentSearchesdropdown panel (client/src/components/RecentSearches.tsxandRecentSearches.css), rendering them only while the dropdown is open so closed-state errors no longer float over or overlap page content.useSearchHistory.tssoretry()returnsPromise<boolean>indicating whetherrefetch()succeeded, and addedretryHistory()inSearchForm.tsxto return keyboard focus to the search input when a retry succeeds and removes the Retry button (without stealing focus if the user moved elsewhere or if retry fails).RecentSearches.test.tsxandsearchHistory.test.tsxto cover closed/open error visibility, Escape dismissal, and keyboard focus restoration on retry, and logged the change indocs/AI-USAGE.md.What was tested
pnpm format:check && pnpm lint && pnpm typecheck && pnpm test && pnpm build— all passed.